Seeking to a New Position in a File

The following example moves to the beginning of an open file using the mmioSeek205J4W5 function.

mmioSeek(hFile, 0L, SEEK_SET);

 

The following example moves to the end of an open file.

mmioSeek(hFile, 0L, SEEK_END);

 

The following example moves to a position 10 bytes from the end of an open file.

mmioSeek(hFile, -10L, SEEK_END);